package mutsumimod.cards.balance;

import basemod.AutoAdd;
import com.megacrit.cardcrawl.actions.common.ApplyPowerAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.powers.RushPower;
import mutsumimod.util.CardStats;

//目前开始进行平衡性调整，改动你写的卡牌时我把原本的放到balance软件包内

@AutoAdd.Ignore
public class MutsumiRush extends BaseCard {
    public static final String ID = makeID(MutsumiRush.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.POWER,
            CardRarity.UNCOMMON,
            CardTarget.SELF,
            1
    );

    public MutsumiRush() {
        super(ID, info);
        this.magicNumber = this.baseMagicNumber = 2;
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        this.addToBot(new ApplyPowerAction(p, p, new RushPower(p, this.magicNumber), this.magicNumber));
    }

    @Override
    public AbstractCard makeCopy() {
        return new MutsumiRush();
    }

    @Override
    public void upgrade() {
        if(this.upgraded) {
            return;
        }
        this.upgradeName();
        this.upgradeBaseCost(0);
    }

}
